package com.ruoyi.myplayer.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.myplayer.mapper.PlayerRankingItemMapper;
import com.ruoyi.myplayer.domain.PlayerRankingItem;
import com.ruoyi.myplayer.service.IPlayerRankingItemService;

import javax.annotation.Resource;

/**
 * 排行榜列数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
@Service
public class PlayerRankingItemServiceImpl implements IPlayerRankingItemService 
{
    @Resource
    private PlayerRankingItemMapper playerRankingItemMapper;

    /**
     * 查询排行榜列数据
     * 
     * @param id 排行榜列数据主键
     * @return 排行榜列数据
     */
    @Override
    public PlayerRankingItem selectPlayerRankingItemById(Long id)
    {
        return playerRankingItemMapper.selectPlayerRankingItemById(id);
    }

    /**
     * 查询排行榜列数据列表
     * 
     * @param playerRankingItem 排行榜列数据
     * @return 排行榜列数据
     */
    @Override
    public List<Map<String,Object>> selectPlayerRankingItemList(PlayerRankingItem playerRankingItem)
    {
        return playerRankingItemMapper.selectPlayerRankingItemList(playerRankingItem);
    }

    /**
     * 新增排行榜列数据
     * 
     * @param playerRankingItem 排行榜列数据
     * @return 结果
     */
    @Override
    public int insertPlayerRankingItem(PlayerRankingItem playerRankingItem)
    {
        return playerRankingItemMapper.insertPlayerRankingItem(playerRankingItem);
    }

    /**
     * 修改排行榜列数据
     * 
     * @param playerRankingItem 排行榜列数据
     * @return 结果
     */
    @Override
    public int updatePlayerRankingItem(PlayerRankingItem playerRankingItem)
    {
        return playerRankingItemMapper.updatePlayerRankingItem(playerRankingItem);
    }

    /**
     * 批量删除排行榜列数据
     * 
     * @param ids 需要删除的排行榜列数据主键
     * @return 结果
     */
    @Override
    public int deletePlayerRankingItemByIds(Long[] ids)
    {
        return playerRankingItemMapper.deletePlayerRankingItemByIds(ids);
    }

    /**
     * 删除排行榜列数据信息
     * 
     * @param id 排行榜列数据主键
     * @return 结果
     */
    @Override
    public int deletePlayerRankingItemById(Long id)
    {
        return playerRankingItemMapper.deletePlayerRankingItemById(id);
    }
}
